Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors the code in the singlton design pattern #66

Merged
merged 1 commit into from
Feb 28, 2013

Conversation

sukima
Copy link
Contributor

@sukima sukima commented Dec 26, 2012

The original code was a little misleading and it also would compile with
a runtime error.

This offers a new version that illistrates the use of closures inside a
class definition. It also provides an example of how to handle modules
(including private classes) The two example together illistrate some of
the flexability and elegance CoffeeScript can offer. It also explains
how the use of the wrapper around a CS file.

I personally found the original sample code to be confusing to read.

The original code was a little misleading and it also would compile with
a runtime error.

This offers a new version that illistrates the use of closures inside a
class definition. It also provides an example of how to handle modules
(including private classes) The two example together illistrate some of
the flexability and elegance CoffeeScript can offer. It also explains
how the use of the wrapper around a CS file.
dbrady added a commit that referenced this pull request Feb 28, 2013
Refactors the code in the singlton design pattern
@dbrady dbrady merged commit cbe19ff into coffeescript-cookbook:master Feb 28, 2013
@dbrady
Copy link
Member

dbrady commented Feb 28, 2013

Sorry for lag in responding. Thank you! Commit bit granted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants